home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmStringDraw.z / XmStringDraw
Encoding:
Text File  |  2003-11-18  |  4.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwww((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV          XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwww((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_S_t_r_i_n_g_D_r_a_w - A compound string function that draws a
  10.       compound string in an    X window
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/Xm.h>
  14.  
  15.       void XmStringDraw (dddd,,,,    wwww,,,, ffffoooonnnnttttlllliiiisssstttt,,,, ssssttttrrrriiiinnnngggg,,,, ggggcccc,,,, xxxx,,,, yyyy,,,, wwwwiiiiddddtttthhhh,,,, aaaalllliiiiggggnnnnmmmmeeeennnntttt,,,, llllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn,,,, cccclllliiiipppp)
  16.            _D_i_s_p_l_a_y     **** dddd;
  17.            _W_i_n_d_o_w     wwww;
  18.            _X_m_F_o_n_t_L_i_s_tffffoooonnnnttttlllliiiisssstttt;
  19.            _X_m_S_t_r_i_n_g     ssssttttrrrriiiinnnngggg;
  20.            _G_C     ggggcccc;
  21.            _P_o_s_i_t_i_o_n     xxxx;
  22.            _P_o_s_i_t_i_o_n     yyyy;
  23.            _D_i_m_e_n_s_i_o_n wwwwiiiiddddtttthhhh;
  24.            _u_n_s_i_g_n_e_d    _c_h_a_raaaalllliiiiggggnnnnmmmmeeeennnntttt;
  25.            _u_n_s_i_g_n_e_d    _c_h_a_rllllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn;
  26.            _X_R_e_c_t_a_n_g_l_e**** cccclllliiiipppp;
  27.  
  28.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.       _X_m_S_t_r_i_n_g_D_r_a_w draws a compound    string in an X Window.    If a
  30.       compound string segment uses a font list entry that defines
  31.       a font set, the graphic context passed to this routine will
  32.       have the GC font member left in an undefined state.  The
  33.       underlying _X_m_b_S_t_r_i_n_g_D_r_a_w function called by this routine
  34.       modifies the font id field of    the GC passed into it and does
  35.       not attempt to restore the font id to    the incoming value.
  36.       If the compound string segment is not    drawn using a font
  37.       set, the graphic context must    contain    a valid    font member.
  38.       Graphic contexts created by _X_t_G_e_t_G_C are not valid for    this
  39.       routine; instead, use    _X_t_A_l_l_o_c_a_t_e_G_C to    create a graphic
  40.       context.
  41.  
  42.       dddd    Specifies the display.
  43.  
  44.       wwww    Specifies the window.
  45.  
  46.       ffffoooonnnnttttlllliiiisssstttt
  47.            Specifies the font list.
  48.  
  49.       ssssttttrrrriiiinnnngggg
  50.            Specifies the string.
  51.  
  52.       ggggcccc   Specifies the graphics context to use.
  53.  
  54.       xxxx    Specifies a coordinate of the rectangle that will
  55.            contain the displayed compound string.
  56.  
  57.       yyyy    Specifies a coordinate of the rectangle that will
  58.            contain the displayed compound string.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwww((((3333XXXX))))           UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV          XXXXmmmmSSSSttttrrrriiiinnnnggggDDDDrrrraaaawwww((((3333XXXX))))
  71.  
  72.  
  73.  
  74.       wwwwiiiiddddtttthhhh
  75.            Specifies the width of the rectangle that will contain
  76.            the displayed compound string.
  77.  
  78.       aaaalllliiiiggggnnnnmmmmeeeennnntttt
  79.            Specifies how the string    will be    aligned    within the
  80.            specified rectangle.  It    is either
  81.            _X_m_A_L_I_G_N_M_E_N_T__B_E_G_I_N_N_I_N_G, _X_m_A_L_I_G_N_M_E_N_T__C_E_N_T_E_R, or
  82.            _X_m_A_L_I_G_N_M_E_N_T__E_N_D.
  83.  
  84.       llllaaaayyyyoooouuuutttt____ddddiiiirrrreeeeccccttttiiiioooonnnn
  85.            Controls    the direction in which the segments of the
  86.            compound    string will be laid out.  It also determines
  87.            the meaning of the aaaalllliiiiggggnnnnmmmmeeeennnntttt parameter.
  88.  
  89.       cccclllliiiipppp Allows the application to restrict the area into    which
  90.            the compound string will    be drawn.  If NULL, no
  91.            clipping    will be    done.
  92.  
  93.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  94.       _X_m_S_t_r_i_n_g_C_r_e_a_t_e(_3_X).
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 11/11/03)
  130.  
  131.  
  132.  
  133.